#ifndef MODIFYCUTPLANUI_H
#define MODIFYCUTPLANUI_H

#include <QWidget>
#include "../../include/LoginUserInfo.h"
#include "BaseInclude.h"
#include <QUuid>
#include<QDialog>

class QRecordCheckTableModel;
class QEditTableDelegate;
namespace Ui {
class ModifyCutPlanUi;
}

class ModifyCutPlanUi : public QDialog
{
    Q_OBJECT

public:
    explicit ModifyCutPlanUi(QDialog *parent = 0);
    ~ModifyCutPlanUi();

	void initModifyCutPlanUi();
	void ReadOnlyItem();

public:
	//LoginUserInfo * userInfo = LoginUserInfo::getInstance();
private slots:
    void on_CloseBut_clicked();

    void on_AddBut_clicked();

    void on_DelBut_clicked();

    void on_SaveBut_clicked();

    void on_SubmitBut_clicked();

private:
    Ui::ModifyCutPlanUi *ui;
	QRecordCheckTableModel *pTableModel;
	QEditTableDelegate *pEditTableDelegate;

	QString updateId = "";
	QString dgjd_updateId = "";
	QUuid uid;
    
};
#endif // MODIFYCUTPLANUI_H
class  ModifyQEditTableDelegate : public QEditTableDelegate
{
	Q_OBJECT

public:

	ModifyQEditTableDelegate(QObject *parent = 0);
	~ModifyQEditTableDelegate();

	virtual void InitComboBox(const QModelIndex &index, QComboBox * editor) const;
};
